home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir28
/
papc20.zip
/
MORTGAGE.PRG
< prev
next >
Wrap
Text File
|
1994-04-02
|
617b
|
22 lines
LBL mortgage
12 prec
clrf 125,000 pv 6.875 12/ i 30 12* n pmt
PUTS "month payment interest principal balance\n"
PUTS "----- ------- -------- --------- -------\n"
; do it for thirty years
1.36001 0 sto ; counter
3 rcl 6 sto ; r6 will hold balance
LBL loop
0 fix
0 rcl int 4 putx drop puts " " ; month
2 fix
4 rcl chs 10 putx puts " " ; pmt
6 rcl 2 rcl % 10 putx puts " " ; interest
- 10 putx puts " " ; principal
chs 6 rcl + 10 putx puts "\n" ; balance
6 sto
0 ISG
GTO loop
QUIT